<details>
<summary>How to use the code sample</summary>

<strong>Before you use the code sample below, you should do the following::</strong>
-  Import `createChart`. Refer to [Getting Started](/docs#creating-a-chart) for more information.
-  Add an HTML div element with the `id` of the `container`.

Here is an example skeleton setup: [Code Sandbox](https://codesandbox.io/s/lightweight-charts-skeleton-n67pm6).
You can paste the provided code below the `// REPLACE EVERYTHING BELOW HERE` comment.

:::tip

Some code may be hidden to improve readability. Toggle the checkbox above the code block to reveal all the code.

:::
</details>
